<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
 *{
    margin: 0;
    padding: 0;
} 

 .w{
    width: 1200px;
    margin: auto;
} 
 body{
    background-color: #f3f5f7;
    height: 3000px;
} 
.header{
    height: 42px;
    margin: 30px auto;
} 
.box{
    margin-top: 30px;
}
.box-hd{
    height: 40px;
}
.box-hd h3{
    float: left;
    font-size: 20px;
    color: #494949;
    font-weight: 400;
}
.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}
.box-bd ul{
    width: 1280px;
    display: flex; 
    list-style: none;
    flex-wrap: wrap;
    cursor: pointer;
}
.box-bd ul li {
    float: left;
    width: 238px;
    height: 270px;
    background-color:#fff;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}
.box-bd ul li:hover{
    transform: scale(1.2);
}
.box-bd ul li img {
    width: 100%;
    cursor: pointer;
}
.box-bd ul h4{
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}
.box-bd .info {
    margin: 0 25px 0 25px;
    font-size: 12px;
    color: #999;
}
.box-bd .info span {
    color: #ff7c2d;
}

</style>
</head>
<body>
    <div class="box w">
        <div class="box-hd">
            <h3>精品推荐</h3>
            <a href="#">查看更多</a>
        </div>
        <div class="box-bd">
            <ul>
                <!-- <li>
                    <img src="/study-js/学习/第五单元/在线渲染/images/images/course01.png" alt="">
                    <h4>Think PHP 5.0 博客系统实战项目演练</h4>
                    <div class="info">
                        <span>高级</span> . 1125人在学习
                    </div>
                </li> -->
            <script>
                let data = [
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course01.png',
                            title: 'Think PHP 5.0 博客系统实战项目演练',
                            num: 1125
                        },
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course02.png',
                            title: 'Android 网络动态图片加载实战',
                            num: 357
                        },
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course03.png',
                            title: 'Angular2 大前端商城实战项目演练',
                            num: 22250
                        },
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course04.png',
                            title: 'Android APP 实战项目演练',
                            num: 389
                        },
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course05.png',
                            title: 'UGUI 源码深度分析案例',
                            num: 124
                        },
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course06.png',
                            title: 'Kami2首页界面切换效果实战演练',
                            num: 432
                        },
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course07.png',
                            title: 'UNITY 从入门到精通实战案例',
                            num: 888
                        },
                        {
                            src: '/study-js/学习/第五单元/在线渲染/images/images/course08.png',
                            title: 'Cocos 深度学习你不会错过的实战',
                            num: 590
                        },
                    ]

                    for(let i = 0;i< data.length;i++){
                        document.write(`
                        <li>
                             <img src=${data[i].src} title="${data[i].title}" >
                             <h4>${data[i].title}</h4>
                            <div class="info">
                            <span>高级</span> . <span>${data[i].num}</span>人在学习
                            </div>
                         </li>
                     `)
                    }
            </script>    
            </ul>
        </div>
    </div>
</body>
</html>